package com.andrew.demo.tableInfo;

import com.andrew.demo.model.Student;

import javax.validation.constraints.Null;
import java.sql.ResultSet;
import java.sql.SQLException;

public abstract class BaseTableInfoEntity<T> {


    public BaseTableInfoEntity(String dbName, String tableName, String selectSql, String updateSql) {
        DB_NAME = dbName;
        TABLE_NAME = tableName;
        SELECT_SQL = selectSql;
        UPDATE_SQL = updateSql;
    }


    public String DB_NAME;

    public String TABLE_NAME;

    public String SELECT_SQL;

    public String UPDATE_SQL;

    public abstract T convert(ResultSet rs) throws SQLException;

}
